package ModelLayer;


/**
 * Write a description of class Loan here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Loan
{
    // instance variables - replace the example below with your own
    private int id;
    private String date;
    private String period;
    private boolean status;
    private Sample sample;
    private Person person;
    
    public Loan(int id, String date, String period, boolean status, Sample sample, Person person)
    {
        this.id = id;
        this.date = date;
        this.period = period;
        this.status = status;
        this.sample = sample;
        this.person = person;
    }
    
    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }
    
    public void setDate(String date)
    {
        this.date = date;
    }

    public String getDate()
    {
        return date;
    }
    
    public void setPeriod(String period)
    {
        this.period = period;
    }

    public String getPeriod()
    {
        return period;
    }
    
    public void setStatus(boolean status)
    {
        this.status = status;
    }

    public boolean getStatus()
    {
        return status;
    }
    
    public void setSample(Sample sample)
    {
        this.sample = sample;
    }

    public Sample getSample()
    {
        return sample;
    }
}
